use concurrency::EnumFrom;

fn main() {
    let up = Direction::Up(DirectionUp { x: 42 });
    println!("up= {:?}", up);
}

#[allow(unused)]
#[derive(Debug, EnumFrom)]
enum Direction {
    Up(DirectionUp),
    _Down,
}

#[allow(unused)]
#[derive(Debug)]
struct DirectionUp {
    x: u32,
}
